<template>
  <div class="centent">
    <div class="cnetext-top">
      <div class="cnetext-top1">
        <span class="iconfont icon-zuojiantou" @click="fun1()"></span>
        <div class="cnetext-top-right">
          <span class="iconfont icon-fenxiang" @click="fun2()"></span>
        </div>
      </div>
    </div>
    <div class="map01">
      <img src="img/map01.jpg" alt="" />
      <img src="img/map02.jpg" alt="" />
      <img src="img/map03.jpg" alt="" />
      <img src="img/map04.jpg" alt="" />
      <img src="img/map05.jpg" alt="" />
    </div>
    <van-share-sheet
      v-model="showShare"
      title="立即分享给好友"
      :options="options"
    />
  </div>
</template>

<script>
import Vue from "vue";
import { ShareSheet } from "vant";
import "vant/lib/index.css";
Vue.use(ShareSheet);
export default {
  methods: {
    fun1() {
      this.$router.go(-1);
    },
    fun2() {
      this.showShare = true;
    },
  },
  data() {
    return {
      showShare: false,
      options: [
        [
          { name: "微信", icon: "wechat" },
          { name: "朋友圈", icon: "wechat-moments" },
          { name: "微博", icon: "weibo" },
          { name: "QQ", icon: "qq" },
        ],
        [
          { name: "复制链接", icon: "link" },
          { name: "分享海报", icon: "poster" },
          { name: "二维码", icon: "qrcode" },
          { name: "小程序码", icon: "weapp-qrcode" },
        ],
      ],
    };
  },
};
</script>

<style scoped>
.map01 {
  width: 100%;
}
img {
  width: 100%;
}
.centent {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: scroll;
  width: 100%;
  position: relative;
}
.iconfont {
  color: white;
}
.cnetext-top {
  position: none;
  width: 100%;
  margin: auto;
  height: 0.6rem;
  line-height: 0.6rem;
  position: fixed;
  top: 0rem;
  z-index: 99;
  background-color: rgba(0, 0, 0);
}
.cnetext-top1 {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: auto;
}

</style>